//获取行数据
export function getRowData(gridApi) {
    try {
        if (
            gridApi &&
            gridApi.focusedCellController &&
            gridApi.focusedCellController.focusedCell &&
            gridApi.focusedCellController.focusedCell.rowIndex >= 0) {
            return gridApi.getDisplayedRowAtIndex(gridApi.focusedCellController.focusedCell.rowIndex).data;
        } else {
            return null;
        }
    } catch (error) {
        return null;
    }
}